package com.hzc.springchan.enums;

import com.hzc.springchan.constant.System;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 请求参数策略枚举类
 * @author chen990627
 * @date 2022/09/05
 */
@Getter
@AllArgsConstructor
public enum CMethod {

    GET(
            System.RequestLogStrategy.GET,
            System.FetchParamStrategy.GET,
            System.RestRequestStrategy.GET
    ),

    POST(
            System.RequestLogStrategy.POST,
            System.FetchParamStrategy.POST,
            System.RestRequestStrategy.POST
    ),

    PUT(
            System.RequestLogStrategy.PUT,
            System.FetchParamStrategy.PUT,
            System.RestRequestStrategy.PUT
    ),

    DELETE(
            System.RequestLogStrategy.DELETE,
            System.FetchParamStrategy.DELETE,
            System.RestRequestStrategy.DELETE
    );

    private String requestLogStrategy;

    private String fetchParamStrategy;

    private String restRequestStrategy;
}
